#include "PowerFlowCalculation.h"







static double TransFormer_Branch_a[3][4]={
6,5,0.252020,0.932,
7,4,0.209120,0.978,
9,4,0.556180,0.969
};

static double Normal_Branch_a[34][5]={
1,2,0.0922,0.047,0,
2,3,0.493,0.2511,0,
3,4,0.366,0.1864,0,
4,5,0.3811,0.1941,0,
5,6,0.819,0.707,0,
6,7,0.1872,0.6188,0,
7,8,0.7114,0.2351,0,
8,9,1.03,0.74,0,
9,10,1.044,0.74,0,
10,11,0.1966,0.065,0,
11,12,0.3744,0.1238,0,
12,13,1.468,1.155,0,
13,14,0.5416,0.7129,0,
14,15,0.591,0.526,0,
15,16,0.7463,0.545,0,
16,17,1.289,1.721,0,
17,18,0.732,0.574,0,
2,19,0.164,0.1565,0,
19,20,1.5042,1.3554,0,
20,21,0.4095,0.4784,0,
21,22,0.7089,0.9373,0,
3,23,0.4512,0.3083,0,
23,24,0.898,0.7091,0,
24,25,0.896,0.7011,0,
6,26,0.203,0.1034,0,
26,27,0.2842,0.1447,0,
27,28,1.059,0.9337,0,
28,29,0.8042,0.7006,0,
29,30,0.5075,0.2585,0,
30,31,0.9744,0.963,0,
31,32,0.3105,0.3619,0,
32,33,0.341,0.5302,0,
33,34,0.341,0.5302,0,
34,35,0.341,0.5302,0,
};


static double PQ_Node_a[32][7]{
2,0.1,0.06,1,0,0,0.9,
3,0.09,0.04,1,0,0,0.9,
4,0.12,0.08,1,0,0,0.9,
5,0.06,0.03,1,0,0,0.9,
6,0.06,0.02,1,0,0,0.9,
7,0.2,0.1,1,0,0,0.9,
8,0.2,0.1,1,0,0,0.9,
9,0.06,0.02,1,0,0,0.9,
10,0.06,0.02,1,0,0,0.9,
11,0.045,0.03,1,0,0,0.9,
12,0.06,0.035,1,0,0,0.9,
13,0.06,0.035,1,0,0,0.9,
14,0.12,0.08,1,0,0,0.9,
15,0.06,0.01,1,0,0,0.9,
16,0.06,0.02,1,0,0,0.9,
17,0.06,0.02,1,0,0,0.9,
18,0.09,0.04,1,0,0,0.9,
19,0.09,0.04,1,0,0,0.9,
20,0.09,0.04,1,0,0,0.9,
21,0.09,0.04,1,0,0,0.9,
22,0.09,0.04,1,0,0,0.9,
23,0.09,0.05,1,0,0,0.9,
24,0.42,0.2,1,0,0,0.9,
25,0.42,0.2,1,0,0,0.9,
26,0.06,0.025,1,0,0,0.9,
27,0.06,0.025,1,0,0,0.9,
28,0.06,0.02,1,0,0,0.9,
29,0.12,0.07,1,0,0,0.9,
30,0.2,0.6,1,0,0,0.9,
31,0.15,0.07,1,0,0,0.9,
32,0.21,0.1,1,0,0,0.9,
33,0.06,0.04,1,0,0,0.9
};

static double PV_Node_a[1][10]{
34,0.1,1,0.0,0.0,0.000000,0.000000,0.0000,2.0,-1.0
};
static double ESS_Node_a[1][10]{
35,0.4,1,0.0,0.0,0.217000,0.127000,0.0000,0.5,-0.4
};
static double Swing_Node_a[1][7]{
1,1,0.0,0.0,0.0,4.315,2.300
};
RE_IEEE14 RE_IEEE14_data()
{
    RE_IEEE14 ri14;
    ri14.TransFormer_Branch=array2gsl(&TransFormer_Branch_a[0][0],3,4);
    ri14.Normal_Branch=array2gsl(&Normal_Branch_a[0][0],34,5);
    ri14.PQ_Node=array2gsl(&PQ_Node_a[0][0],32,7);
    ri14.PV_Node=array2gsl(&PV_Node_a[0][0],1,10);
    ri14.ESS_Node=array2gsl(&ESS_Node_a[0][0],1,10);
    ri14.Swing_Node=array2gsl(&Swing_Node_a[0][0],1,7);
    ri14.Node_Num=ri14.PQ_Node->size1+ri14.PV_Node->size1+ri14.ESS_Node->size1+1;
    return ri14;
}



